{% extends "base.html" %}
{% block title %}Logs {% endblock %}

{%block content%}

{% if object_list %}
    <ul>
    {% for event in object_list %}
        <li>
         {{ event.eventType }} <b>{{ event.eventTime|date:"d M Y G:i" }}</b>
         {{ event.eventText|escape|linebreaks }}
        </li>
    {% endfor %}
    </ul>
{% else %}
    <p>No logs available.</p>
{% endif %}

<a href="/logs/clear">Clear logs</a>

{% endblock %}